home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5921 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: toads.pgh.pa.us!tore
  2. From: tore@lis.pitt.edu (Tore Joergensen)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.realtime
  4. Subject: Re: ADA to C converter, the dream ?
  5. Followup-To: comp.lang.ada,comp.lang.c,comp.realtime
  6. Date: 22 Feb 1996 00:28:49 GMT
  7. Organization: University of Pittsburgh
  8. Message-ID: <4ggdc2$jh2@toads.pgh.pa.us>
  9. References: <4fn8bv$6d1@news.be.innet.net> <tgmDMoBMy.E94@netcom.com> <3121E777.304D@afit.af.mil>
  10. NNTP-Posting-Host: icarus.lis.pitt.edu
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Rusty Baldwin (rbaldwin@nvi.nvi.net) wrote:
  14. : Thomas G. McWilliams wrote:
  15. : > There exists a good Pascal to C translator called p2c available
  16. : > in source code form (I think it might be GNU software). It might
  17. : > serve as a rough basis on which to build something like this.
  18. : > Perhaps you could run your Ada code through some Perl filters
  19. : > and post-process with p2c. Very hackish, I know. Maybe a Modula
  20. : > to C translator could be hacked more easily.
  21. : Why don't you use the gnat (Ada 95) compiler.  It is a front end to the
  22. : gcc compiler.  Perhaps there is a switch to generate C code??
  23.  
  24. C and C++ are two other front ends to the gcc compiler. I'm quite sure
  25. that there isn't any switch for converting code between different 
  26. front ends (wouldn't that be nice; C to C++ and Ada95 converter). BTW,
  27. there are several other front ends too.
  28. --
  29. +-------------------------+-------------------------------------------+
  30. | Tore B. Joergensen      | e-mail : tore@lis.pitt.edu                |
  31. | Centre Court Villa      | web    : http://www.pitt.edu/~tojst1      |
  32. | 5535 Centre Avenue # 6  |                                           |
  33. | Pgh, PA 15232, USA      | Norwegian MSIS-student at Univ. of Pgh.   |
  34. +-------------------------+-------------------------------------------+
  35.